/**
 * COPYRIGHT. Harry Wu 2011. ALL RIGHTS RESERVED.
 * Project: just-core
 * Author: Harry Wu <harrywu304@gmail.com>
 * Created On: Aug 15, 2011 3:34:14 PM
 *
*/ 
package org.justframework.core.router;

import java.util.List;

/**
 * host router
 *
 */
public interface Router<T> {
	
	/**
	 * get nodes
	 * @return
	 */
	List<T> getNodes();
	
	/**
	 * set nodes
	 * @param nodes
	 */
	void setNodes(List<T> nodes);
	
	/**
	 * route host by key
	 * @param key
	 * @return
	 */
	T locate(String... keys);

}
